aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/[username]/support/+page.server.js
blob: a335ec96679147e753face55d3668e8fe8ab99b3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
export const actions = {
	default: async ({ cookies, request }) => {
		let form = Object.fromEntries(await request.formData());

		try {
			await post('/email', form);
		} catch (e) {
			return invalid(400, { failed: true });
		}

		return { success: true };
	}
};